//
//  CommissionSubsidiaryViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/7.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CommissionSubsidiaryViewController.h"
#import "CommissionSubsidiaryViewModel.h"
#import "lookingForSubsidiesViewController.h"

@interface CommissionSubsidiaryViewController ()
@property (nonatomic, strong) CommissionSubsidiaryViewModel *viewModel;
@end

@implementation CommissionSubsidiaryViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"收支明细";
    self.viewModel = [[CommissionSubsidiaryViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    kWeakSelf(self);
    self.viewModel.BlockSelet = ^(NSIndexPath * _Nullable index) {
        [weakself selectRowIndex:index];
    };
}

- (void)selectRowIndex:(NSIndexPath *)index
{
    lookingForSubsidiesViewController *vc = [lookingForSubsidiesViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
